<input type="input" class="input" id="flv_url" value="">
<input type="button" id="insert_flv"  value="插入flv"><br />
<input type="input" class="input" id="mp3_url" value="">
<input type="button" id="insert_mp3"  value="插入mp3">
<script>
	$(document).ready(function(){ 
	var ue=UE.getEditor('content');
	/***/
	function insert_flv(_url){
		if(_url=='') return;
		var value = '<object type="application/x-shockwave-flash" data="/common/static/swf/cf_player.swf" width="500" height="400"><param name="movie" value="/common/static/swf/cf_player.swf" /><param name="allowFullScreen" value="true" /><param name="FlashVars" value="autostart=false&id=&fileurl='+_url+'" /></object>';
		ue.execCommand('insertHtml', value);
	}
	function insert_mp3(_url){
		if(_url=='') return;
		var value='<object type="application/x-shockwave-flash" data="/common/static/swf/dewplayer-vol.swf?mp3='+_url+'" width="240" height="20"><param name="wmode" value="transparent" /><param name="movie" value="/common/static/swf/dewplayer-vol.swf?mp3='+_url+'" /></object>';
		ue.execCommand('insertHtml', value);
	}
	/***/
	$('#insert_flv').click(function(){
		insert_flv($('#flv_url').val());	
		$('#flv_url').val('');
	});
	$('#insert_mp3').click(function(){
		insert_flv($('#mp3_url').val());	
		$('#mp3_url').val('');
	});
});
</script>